package com.gpframework.module.wages.service.impl;

import com.gpframework.module.wages.domain.vo.GzMonthlyReceiptOfGoodsVo;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gpframework.module.wages.mapper.GzFleetMonthlyRecordMapper;
import com.gpframework.module.wages.domain.GzFleetMonthlyRecord;
import com.gpframework.module.wages.domain.vo.GzFleetMonthlyRecordVo;
import com.gpframework.module.wages.service.IGzFleetMonthlyRecordService;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;

import java.util.Date;
import java.util.List;
/**
 * @ClassName GzFleetMonthlyRecord
 * @Author gpframework
 * @Date 2024-01-19
 * @Version 1.0.0
 * @Description 车队月度Service业务层处理
 */
@Service
public class GzFleetMonthlyRecordServiceImpl extends ServiceImpl<GzFleetMonthlyRecordMapper, GzFleetMonthlyRecord> implements IGzFleetMonthlyRecordService {

    /**
     * @Description 查询列表返回VO 用于返回给前端的列表接口
     * @Author gpframework
     * @Date 2024-01-19
     * @Param [lqw]
     * @Return List<GzFleetMonthlyRecordVo>
     */
    @Override
    public List<GzFleetMonthlyRecordVo> listVo(QueryWrapper<GzFleetMonthlyRecord> lqw) {
        return this.baseMapper.listVo(lqw);
    }

    /**
     * @Description 通过查询详情VO 用于返回给前端的列详情接口
     * @Author gpframework
     * @Date 2024-01-19
     * @Param [id]
     * @Return GzFleetMonthlyRecordVo
     */
    @Override
    public GzFleetMonthlyRecordVo getVoById(Long id) {
        return this.baseMapper.getVo(id);
    }


    @Override
    public List<GzFleetMonthlyRecordVo> list(String month, String deptName) {
        return this.baseMapper.list(month);
    }

    @Override
    public void deleteByMonth(Date month) {
        this.baseMapper.deleteByMonth(month);
    }
}
